<?php

namespace app\admin\model;

use think\Db;
use think\Model;


class Anchor extends BaseModel
{
    // 表名
    protected $table = 'user';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    public function zoneList()
    {
         return $this->belongsTo("ZoneList", "zone", "zone", '', "left")->setEagerlyType(0);
    }

    public function userRightConfig()
    {
        return $this->belongsTo("UserRightConfig", "level", "grade", '', 'left')->setEagerlyType(0);
    }
}
